/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.comun;

import edu.uoc.tdp.pac4.beans.Linia_peca;
import edu.uoc.tdp.pac4.beans.Marca_coche;
import edu.uoc.tdp.pac4.beans.Preu_peca;
import edu.uoc.tdp.pac4.beans.Proveidor;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.ArrayList;
/**
 *
 * @author pguerreroj
 */
public interface GestorInterface extends Remote {

    public ArrayList<Proveidor> getProveidors() throws RemoteException, SQLException;
    public ArrayList<Preu_peca> getPreusByProveidor(int proveidor) throws RemoteException, SQLException;
    public ArrayList<Marca_coche> getMarcas() throws RemoteException, SQLException;
    public ArrayList<Preu_peca> getPreusByMarcaCoche(int marca) throws RemoteException,SQLException;
    public Preu_peca getPreu_pecaById(int id) throws RemoteException,SQLException;
    public ArrayList<Preu_peca> getPreusByMarcaCocheDistinct(int marca) throws RemoteException, SQLException;
    public String calculaPressupost(ArrayList<Linia_peca> comanda) throws RemoteException, SQLException;
    
    
}
